package cqrtplm.service;

import com.github.pagehelper.PageInfo;
import cqrtplm.dto.PreventErrorCorrectionDTO;
import cqrtplm.dto.StartProblemItemTaskDTO;
import cqrtplm.entity.PreventErrorCorrectionDO;
import cqrtplm.util.PageDtoUtil;
import cqrtplm.vo.PreventErrorCorrectionVO;
import org.springframework.web.multipart.MultipartFile;

import java.math.BigInteger;
import java.util.List;

public interface PreventErrorCorrectionService {
    PageInfo<PreventErrorCorrectionVO> getPreventErrorCorrectionList(PreventErrorCorrectionDTO dto);

    PageDtoUtil importPreventErrorCorrection(MultipartFile file);

    void deletePreventErrorCorrection(PreventErrorCorrectionDTO dto);

    void startProblemItemTask(StartProblemItemTaskDTO dto);

    void createFileAndProblemItemLink(BigInteger workFlowContainerId) throws  Exception;

    void insertPreventErrorCorrection(List<PreventErrorCorrectionDO> prevenList );

    PageInfo<PreventErrorCorrectionDO> getPreventErrorCorrection(int pageNum,int pageSize,String projectId);

    void insertPreventCorrectionFromProblem(List<PreventErrorCorrectionDO> prevenList);


    String selectProjectOrderByProjectId(String projectId);

    List<String> getAllProjectNo();

}
